package com.example.yydm666.exception;

import com.example.yydm666.enums.ResultEnum;

/**
 * unchecked不用去处理交给jvm去处理,继承RuntimeException
 * checked需要自己处理,交给Exception
 */

public class YydmException extends RuntimeException {
    public YydmException(String error) {
        super(error);
    }

    public YydmException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
    }
}
